package cn.znzz.cjm.order.service;


import cn.znzz.cjm.basic.service.IBaseService;
import cn.znzz.cjm.basic.util.PageList;
import cn.znzz.cjm.order.domain.AdoptOrder;
import cn.znzz.cjm.order.query.AdoptOrderQuery;
import cn.znzz.cjm.user.domain.Logininfo;

import java.util.Map;

public interface IAdoptOrderService extends IBaseService<AdoptOrder> {

    String submit(Map<String, Object> params, Logininfo currentLogin);

    //查询用户订单
    PageList<AdoptOrder> queryUserOrder(AdoptOrderQuery query, Logininfo currentLogin);
    //查询店铺订单
    PageList<AdoptOrder> queryAdmin(AdoptOrderQuery query, Logininfo currentLogin);

    AdoptOrder queryById(Long id);

    //取消支付超时的订单
    void cancelByQuartz(Long orderId);
}
